package cn.jantd.modules.activiti.service.impl;

import cn.jantd.modules.activiti.entity.ActModel;
import cn.jantd.modules.activiti.mapper.ModelMapper;
import cn.jantd.modules.activiti.service.IModelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zhuxiaomeng
 * @date 2018/1/21.
 * @email 154040976@qq.com
 */
@Service
public class ModelServiceImpl extends ServiceImpl<ModelMapper, ActModel> implements IModelService {
    @Autowired
    ModelMapper modelMapper;
    @Override
    public ActModel selectByModel(String modelId) {
        return modelMapper.selectByModel(modelId);
    }

    @Override
    public void updateByKey(String metoInfo, String modelId) {
        baseMapper.updateByKey(metoInfo,modelId);
    }


}
